<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        html,
        body{
            background-color: #ccc;
        }
        .main {
            border: solid 1px #000;
            width: 260px;
            height: 260px;
            transform: translate3d(100px, 251.5px, 0) scale(1) rotate(0deg);
            transform-origin: center;
            transition-property: transform;
            transition-duration: 1s;
        }
        
        .main:hover {
            transform: translate3d(100px, 251.5px, 0) scale(1) rotate(45deg);
        }
    </style>
</head>

<body>
    <div class="image-cropper">
        <div class="main">
            <img src="https://cdn.nlark.com/yuque/0/2020/jpeg/1252071/1590847767698-f511e86d-f183-4f75-a04d-1b99cd9f0bd7.jpeg" alt="" />
        </div>
    </div>
</body>

</html>